package org.hxyjs.dao;

import org.hxyjs.entity.Expert;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface ExpertDao {

    //查询全部
    public List<Expert> getAllExperts() throws Exception;

    //按主键查询
    public Expert getExpertByEno(String eno) throws Exception;

    //分页查询
    public List<Expert> getExpertByPage(PageInfo pageInfo) throws Exception;

    //增删改的返回值都是整数
    //增加
    Integer addExpert(Expert expert) throws Exception;

    //删除
    Integer deleteExpertByEno(String eno) throws Exception;

    //修改
    Integer updateExpertByEno(Expert expert) throws Exception;


}
